#ifndef __DXGRAPHICS_H__
#define __DXGRAPHICS_H__

#include <d3d9.h>
#include <d3dx9.h>
#include <time.h>
#include <stdio.h>
#include "Infomation.h"


class CGraphics
{
private:
	LPDIRECT3D9 _d3d;
	LPDIRECT3DSURFACE9 _backbuffer;
public:
	LPDIRECT3DDEVICE9 _d3ddev;
	CGraphics();
	~CGraphics();
	bool Init_Direct3D(HWND,int,int);
	LPDIRECT3DSURFACE9 LoadSurface(char*,D3DCOLOR );
	void BeginRender(HWND,LPDIRECT3DSURFACE9);
	void EndRender();
};

#endif